package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 午别对象 FAREWELL
 *
 * @author dp
 * @date 2023-11-27
 */
@Data
public class Farewell extends BaseEntity {
    private static final long serialVersionUID = 1L;

    private String farewellId;


    private String farewellCode;

    private String farewellName;

    private String PINYINCODE;

    private Long isValid;

    private Long modifyBy;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = " ", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifyTime;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("farewellId", getFarewellId())
                .append("farewellCode", getFarewellCode())
                .append("farewellName", getFarewellName())
                .append("PINYINCODE", getPINYINCODE())
                .append("isValid", getIsValid())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("modifyBy", getModifyBy())
                .append("modifyTime", getModifyTime())
                .toString();
    }
}
